<?php
class GuestbookAction extends CommonAction {
	function index(){
		$this->listmap ="g.site_id=".$this->siteid;
        parent::_list("g","left join __MEMBER__ AS m on m.id=g.member_id","g.*,m.openid as openid");
		$this->MagicList = M('Magic')->where(array('site_id' => $this->siteid))->select();
		$this->display();
	} 
}
